<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                template="/embed/template.xhtml">
                
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <ui:define name="topnav">
            <ui:include src="/embed/menu.xhtml">
                <ui:param name="page" value="home" />
            </ui:include>
   </ui:define> 
   <ui:define name="sidebar">
         <ui:include src="/login/login.xhtml" /> 
   </ui:define>  

 <ui:define name="search">   
 
    <ui:include src="/embed/search.xhtml" />
 
</ui:define> 

        <ui:define name="body" >
         <ui:repeat value="#{searchResults}" var="item">
            <div class="productbox" >
               <div class="bestimage2">
               <f:subview id="productimage" rendered="#{item.pictureUrl != null}"> 
                                <s:link view="/product.xhtml">
                                    <f:param name="id" value="#{item.productId}"/>
                                    <img src="#{item.pictureUrl}"/>
                                </s:link>
                                    <h:outputText value="#{item.design} "></h:outputText>
                                    <h:outputText value="#{item.length}"></h:outputText>                    
                                    <h:outputText value="#{item.style}  "></h:outputText>
		                            <h:outputText value="#{item.waist}   "></h:outputText>
		                            <h:outputText value="#{item.fitSeason}  "></h:outputText>
		                            <h:outputText value="#{item.price}"></h:outputText>
	                            
	            </f:subview>
                </div>

                     
            </div>
            </ui:repeat>
              <div class="productbuttons">
                <s:button view="/home.xhtml" value="返回"/>
              </div>
        </ui:define>
    </ui:composition>





